package com.concurrent.sample.business.loan.entity;

import com.concurrent.sample.business.common.enums.ContractStatusEnum;
import com.concurrent.sample.common.entity.AuditingEntity;
import java.time.LocalDate;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 场外借贷合约表
 */
@Entity
@Table(name = "loan")
@Data
@Accessors(chain = true)
public class LoanEntity extends AuditingEntity {

  /**
   * 交易日
   */
  private LocalDate tradingDay;

  /**
   * 券单ID
   */
  private Long loanTicketId;

  /**
   * 客户信息
   */
  private String customerNo;

  /**
   * 标的信息
   */
  private String symbol;

  /**
   * 期初数量
   */
  private Long initQty;

  /**
   * 存续数量
   */
  private Long liveQty;

  /**
   * 存续状态
   */
  private ContractStatusEnum contractStatus;

  /**
   * 备注
   */
  private String memo;

}
